using System.Collections.Generic;
using Framework.SqlDataAccess.Controller;
using Kaysite.Model;

namespace Kaysite.Controller
{
    public class UserController: KaysiteController<User>
    {
        #region -= Constructors =-

        public UserController() : this(null, null, false) { }
        public UserController(User model) : this(model, null, false) { }
        public UserController(User model, DALCBase parent) : this(model, parent, true) { }
        public UserController(User model, DALCBase parent, bool useTransaction) : base(model, parent, useTransaction) { }

        #endregion

        #region -= SQL =-
        
        #endregion

        public override List<User> GetAll(string orderFieldName, bool hideDeleted, object notHiddenID)
        {
            if (hideDeleted)
                Filter.AddCondition("StatusID", eOperationType.Equal, eUserStatus.Active);
            return base.GetAll(orderFieldName, hideDeleted, notHiddenID);
        }
    }
}